//
//  JSQAudioVoice.h
//  Conversation
//
//  Created by C_HAO on 15/9/29.
//  Copyright © 2015年 CHAOO. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface JSQAudioVoice : NSObject

@property(nonatomic, strong) AVAudioRecorder *audioRecorder;

@property(nonatomic, copy, readonly) NSString *fileName;

@property(nonatomic, copy) NSString *filePath;

@property(nonatomic, copy) void (^voice)(CGFloat change, CGFloat currentTime);

- (instancetype)initWithFilePath:(NSString *)filePath;

- (void)start;

- (void)over;

- (void)cancel;


@end
